@import '@/styles/common/variables.scss';
@import '@/styles/common/transition.scss';
.banner_content{
  position: relative;
  margin: 24px 0 24px 24px;
  height: calc(100% - 48px);
  .banner_list{
    background-color: #ffffff;
    width: calc(100% - 252px);
    height: calc(86.6% - 24px); 
    padding: 0 24px 24px;
  }
  
  .upload_banner{
    height: 13.4%;
    margin-top: 24px;
    width: calc(100% - 252px);
    background-color: #ffffff;
    cursor: pointer;
    .iconfont{
      color: #d5d5d5;;
      font-size: 48px;
      &:hover{
        color: #6c7e59;
      }
    }
  }
  .set{
    background-color: #ffffff;
    position: absolute;
    right: 0;
    top: 0px;
    width: 228px;
    height: 100%;
    >p.title{
      color: #303030;
      font-size: 14px;
      height: 54px;
      border-bottom:1px solid #EBEAEA;
      line-height: 54px;
      padding: 0 16px;
      font-weight: bold;
    }
  }
}
.banner_content{
  .el-image__inner, 
  .el-image__placeholder, .el-image__error{
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

}
.banner_content>.set{
  .el-input__inner{
    text-align: left;
    padding-left: 8px;
    height: 32px;

  }
  .first_title{
    font-size: 14px;
    color: #303030;
    margin-top: 24px;
    padding: 0 16px;
    &:first-of-type{
      margin-top: 16px;
    }
  }
  .second_title{
    font-size: 12px;
    color: #303030;
    margin-top: 16px;
    padding: 0 16px;
    margin-bottom: 6px;
    &.top10{
      margin-top: 10px;
    }
  }
  .el-input-number{
    width: calc(100% - 32px);
    margin: 0 16px;
    line-height: 32px;

    .el-icon-arrow-up:before{
      content:"\e6d9";
    }
    .el-icon-arrow-down:before{
      content:"\e6d8";
    }
    .el-input-number__decrease,
    .el-input-number__increase{
      line-height: 15.5px;
      width: 32px;
      background-color: #ffffff;
    }

  }

  .pos_picker{
    position: relative;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-items: center;
    >div{
      >p{
        color: #666666;
        font-size: 12px;
        margin-bottom: 6px;
      }
     
      >.el-input-number{
        width: 94px;   
        margin: 0;
      }
      &:last-of-type{
        margin-left: 8px; 
      }
    }
    .el-input__inner{
      height: 32px;
      line-height: 32px;
    }

 
  }
  .el-select{
    padding: 0 16px;
  }
.set_content{
  height: calc( 87% - 54px );
  overflow: auto;
}
  .btn_con{
    position: relative;
    height: 13%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    .el-button--del{
      margin-left: 32px;
    }
  }
}

.banner_content>.upload_banner{
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  .svg-icon{
    width: 48px;
    height: 48px;
  }
  >p{
    color: #CCCCCC;
    font-size: 14px;
    margin-top: 16px;
  }
}
.banner_content>.banner_list{
 >.title{
   color: #303030;
   font-size: 14px;
   padding: 16px 0 24px;
   font-weight: bold;
   word-break: break-all;
 }
 >.banner{
   height: calc(100% - 59px);
   display: flex;
   >.swiper{
    width: 112px;
    height: 100%;
   }
 
   >.image{
     width: 100%;
     margin-left: 16px;
     position: relative;
     border-radius: 6px;
     overflow: hidden;
     border: 1px solid #EBEAEA;
     .video-player{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
     .title_con{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      >p.title{
        position: relative;
        top: 0;
        left: 0;
        word-break: break-all;
      }
     }

     >.num{
      position: absolute;
      top: 8px;
      font-size: 14px;
      left: 16px;
      color: #ffffff;
    }
     >.el-image{
       height: 100%;
       width: 100%;
       cursor: pointer;
     }
     >.el-button{
      position: absolute;
      right: 16px;
      top: 16px;
     }
     &.noData {
       border: 1px solid #ebeaea;
     }
   }
 
 }
}
.banner_content>.banner_list>.banner>.swiper{
  .bannerItem{
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 16px;
    height: 100%;
    >div{
      height: 100%;
      &.active{
        border: 1px solid #303030;
      }
      position: relative;
      .icon-video{
        position: absolute;
        top: 50%;
        left: 50%;
        font-size: 16px;
        margin-left: -8px;
        margin-top: -8px;
        color: #fff;
      }
    }
    .el-image{
      height: 100% ;
      width: 100%;
    }
  }
  .swiper-container{
    height: calc(100% - 96px);
    overflow: hidden;
  }

  .carousel-button-next,
  .carousel-button-prev{
    height: 32px;
    background-color: #FFFFFF;
    border: 1px solid #EBEAEA;
    &.disabled{
      pointer-events: none;
    }
    &:hover{
      border: 1px solid #303030;
      i{
        color: #303030;
      }
    }
  }
  .carousel-button-prev{
    margin-bottom: 16px;
    i{
      transform: rotate(90deg);
    }
  }
  .carousel-button-next{
    margin-top: 16px;
    i{
      transform: rotate(90deg);
    }
  }
  .el-carousel__arrow{
    position: relative;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateY(0);
    border-radius: 0;
    background-color: #FFFFFF;
    color: #EBEAEA;
  }
}
.dialog_banner{
  .upload-banner{
    width: 100%;
    height: 288px;
    border: 1px dashed #CCCCCC;
    border-radius: 8px;
    text-align: center;
    line-height: 284px;
    position: relative;
    .el-button {
      padding: 0 28px;
      margin-left: 28px;
      position: relative;
      z-index: 1;
    }
    .el-upload .el-button{
      margin-left: 0px;
    }
    .pop_container{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 8px;
      img{
        object-fit: cover;
        height: 100%;
        width: 100%;
      }
    }
  
  }
  .banner_title{
    color: #303030;
    font-weight: bold;
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 16px;
  }
  .el-form{
    height: 100%;
    .el-form-item{
      margin-bottom: 24px;
      width: 100%;
      &:last-of-type{
        margin-bottom: 20px;
      }
    }
  }
}
.addBanner .banner_tip{
  position: absolute;
  top: 50%;
  width: 100%;
  padding: 0 24px;
  margin-top: 25px;
  .tip{
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.4;
  }
  .tip2{
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.4;
  
  }
}


#addbanner,#editbanner{
  .el-dialog__body{
    padding: 0 48px;
  }
  .scroll{
    .el-tabs__header.is-top{
      position: fixed;
      width: 600px;
      background-color: #fff;
      z-index: 120;
      border: none;
      padding: 24px 0;
      margin: 0;
      >.el-tabs__nav-wrap.is-top {
        border-bottom: 1px solid #E4E7ED;
      }
    }
    .el-tabs__content{
      top: 81px;
    }
  }
}

.video-player{
  width: 100%;
}
// 视频链接
.popover_video{
  padding: 16px ;
  .popover_video_title{
    color: #303030;
    font-size: 14px;
    margin-bottom: 4px;

  }
  .popover_video_btn{
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    .el-button{
      padding: 0 18px;
      margin-left: 8px;
    }
  }

}